package com.ufgov.agcfs.manage.service;

import java.util.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;

@Service
public class ManageService {
	
	public List<String> getAllNd(){
		Date nowTime=new Date();
		SimpleDateFormat dataFmt=new SimpleDateFormat("yyyy"); 
		String curYear = dataFmt.format(nowTime); 
		List<String> ndList = new ArrayList<String>();
		for (int i = -3; i <= 3; i++) {
			ndList.add(String.valueOf(Integer.parseInt(curYear)+i));
		}
		return ndList;
	}
}
